package com.xmmxjy.common.util;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by xmm on 2017/3/2.
 * 文件上传工具类
 */


public class FileUploadUtil {

    public static String FILE_UPLOAD_PATH = "";


    /**
     * spring 文件上传工具类
     * @param dir 子目录
     * @param file
     * @param request
     * @param response
     */
    public static void springFileUpload(String dir,MultipartFile file, HttpServletRequest request, HttpServletResponse response) {
        if (!file.isEmpty()) {

        }
    }
}
